import React from "react";
import ReactDOM from "react-dom/client";
import "./index.scss";

import { RouterProvider } from "react-router-dom";
import router from "./router";
import "@ant-design/v5-patch-for-react-19"; //antd兼容react19的补丁

import { Provider } from "react-redux";
import store from "./store";
import "normalize.css";

const root: ReactDOM.Root = ReactDOM.createRoot(
  document.getElementById("root") as HTMLElement
);
root.render(
  <React.StrictMode>
    <Provider store={store}>
      <RouterProvider router={router}></RouterProvider>
    </Provider>
  </React.StrictMode>
);
